/*
 * @Author: yhlz-${username}
 * @Date: 2022-02-06 15:44:53
 * @LastEditTime: 2022-02-06 15:47:17
 * @LastEditors: yhlz-${username}
 * yhlz.com
 */

/* 驼峰转横杠连接 */
export const toLine = (value: string) => {
  return value.replace(/(A-Z)g/, "-$1").toLocaleLowerCase();
};
